@charset "UTF-8";
/*
Theme Name:     Blocksy Feng
Theme URI:      https://feng.pub
Description:    for the Blocksy child theme
Author:         阿锋
Author URI:     https://feng.pub
Template:       blocksy
Version:        1.1.7
*/

/* @import url("../blocksy/style.css"); */
html::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

html::-webkit-scrollbar-track {
    /* 设置背景色 */
    background-color: var(--theme-palette-color-7);
}

html::-webkit-scrollbar-thumb {
    /* 设置滑块的颜色 */
    background-color: var(--theme-palette-color-1);
    border-radius: 5px;
}

#wpdcom .wpd-comment .wpd-reply-to a,
#wpdcom .wpd-comment-author a,
#wpdcom .wpd-comment-text a,
.ct-footer-copyright a,
.wpd-thread-wrapper .wpd-user-info a,
.entry-content p>a,
.wp-block-post-title a,
.stk-block-posts__title a,
a.wp-block-latest-posts__post-title,
.wp-block-latest-comments__comment-meta a,
.ct-widget .widget_links a,
.wp-block-tag-cloud a,
.fct-link-card .title a {
    background-position: var(--has-link-decoration, 0% 100%);
    background-repeat: var(--has-link-decoration, no-repeat);
    background-size: var(--has-link-decoration, 100% 1px);
    background-image: var(--has-link-decoration, linear-gradient(currentColor, currentColor));
}

#wpdcom .wpd-comment .wpd-reply-to a:hover,
#wpdcom .wpd-comment-author a:hover,
#wpdcom .wpd-comment-text a:hover,
.ct-footer-copyright a:hover,
.wpd-thread-wrapper .wpd-user-info a:hover,
.entry-content p>a:hover,
.wp-block-post-title a:hover,
.stk-block-posts__title a:hover,
a.wp-block-latest-posts__post-title:hover,
.wp-block-latest-comments__comment-meta a:hover,
.ct-widget .widget_links a:hover,
.wp-block-tag-cloud a:hover,
.fct-link-card .title a:hover {
    color: var(--theme-palette-color-8) !important;
    background-size: var(--has-link-decoration, 100% 100%);
    background-image: var(--has-link-decoration, linear-gradient(var(--theme-link-hover-color), var(--theme-link-hover-color)));
    text-decoration: none;
}

[data-link=type-4] .entry-content p>a:hover,
[data-link=type-4] .entry-content em>a:hover,
[data-link=type-4] .entry-content strong>a:hover,
[data-link=type-4] .entry-content>ul a:hover,
[data-link=type-4] .entry-content>ol a:hover {
    color: var(--theme-palette-color-8) !important;
}

/* blocksy */
.hero-section[data-type=type-2]>figure,
[data-cards=cover] .entry-card .ct-media-container img {
    filter: blur(5px);
}

[data-icons-type*=solid] .ct-icon-container {
    transition: all 0.3s;
}

[data-icons-type*=solid] .ct-icon-container:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--theme-border-color);
}

.button,
.ct-button,
.entry-tags a,
.added_to_cart,
[type=submit],
.wp-element-button,
.wp-block-button__link,
button.regform-button,
button[class*=ajax],
.woocommerce button.button,
.woocommerce-message .showlogin,
.woocommerce-message .restore-item,
.forminator-ui[data-design=none] .forminator-button,
.fluentform .ff-el-group button.ff-btn {
    border-radius: 3px;
}

.post-navigation .item-content {
    line-height: 22px;
}

.post-navigation .item-title {
    line-height: normal;
    font-weight: 500;
}


/* footer */
.ct-footer .stk-container-padding {
    padding: 0;
}

.ct-footer .wp-block-heading em {
    font-size: 14px;
}

.ct-footer .widget_links .widget-title,
.ct-footer .widget_links .widgettitle {
    display: none;
}

.ct-footer .widget_links li {
    display: inline-block;
    padding-right: 5px;
    font-size: 14px;
    line-height: 20px;
}

.ct-footer-copyright img {
    position: relative;
    top: -2px;
    height: 14px;
}

/* 首页 */
.stk-img-wrapper img {
    transition: all 0.3s;
}

.stk-block-posts__title,
.stk-block-posts__category,
.stk-block-posts__meta,
.stk-block-posts__excerpt,
.stk-block-posts__readmore {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* 文章内容 */
.entry-content>p,
.wp-block-media-text__content>p,
.wp-block-details>p {
    text-indent: 2em;
}

.entry-content .fn a {
    padding: 0 2px;
    color: var(--theme-palette-color-7);
    background-color: var(--theme-palette-color-1);
    border-radius: 2px;
    transition: all 0.3s;
}

.entry-content .fn a:hover {
    box-shadow: 0 0 5px var(--theme-border-color);
}

.entry-content .wp-block-footnotes {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 17px;
    background-color: var(--theme-palette-color-8);
    border-radius: 5px;
}

.entry-content .wp-block-footnotes li {
    margin-bottom: 5px;
}

.entry-content .wp-block-heading {
    position: relative;
    padding-left: 20px;
}

.entry-content .wp-block-heading::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    width: 7px;
    height: 100%;
    background: var(--theme-palette-color-4);
    border-radius: 5px;
}

.entry-content .wp-block-quote {
    border-radius: 3px 0 0 15px;
    padding: 10px 15px 10px 20px;
    background-color: var(--theme-palette-color-8);
    box-shadow: 3px 5px 10px var(--theme-palette-color-10);
    margin-bottom: var(--theme-content-spacing);
}

.entry-content .wp-block-quote cite {
    font-size: 16px;
}

.wp-block-media-text .wp-block-media-text__content .wp-block-quote:last-child {
    margin-bottom: 0;
}

.entry-content .wp-block-code {
    padding: 0px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 3px 5px 10px var(--theme-palette-color-10);
}

.entry-content .wp-block-code code.hljs {
    margin: 0px;
    border-radius: 0px;
    font-size: 14px;
    white-space: inherit;
}

.wp-block-details {
    padding: 5px 10px;
    border: 1px solid var(--theme-border-color);
    border-radius: 5px;
}

.entry-content figure.wp-block-pullquote {
    border: 5px solid var(--theme-border-color);
    border-radius: 5px;
}

.entry-content ul {
    padding-left: 0px;
}

/* wpDiscuz */
#wpdcom {
    --theme-button-min-height: 34px;
}

#wpdcom .wpd-form-head {
    display: none;
}

#wpdcom .wpd-form .wpdiscuz-textarea-wrap {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

#wpdcom .wpd-form .wpd-avatar {
    display: block;
    margin-right: 10px;
}

#wpdcom .wpd-form .wpdiscuz-textarea-wrap [id^=wpd-editor-wraper] {
    flex-grow: 1;
    box-shadow: 3px 5px 12px var(--theme-palette-color-10);
}

#wpdcom .ql-container {
    font-size: inherit;
    background-color: var(--theme-palette-color-8);
    border-radius: 5px 5px 0 0;
}

.ql-editor.ql-blank::before {
    color: var(--theme-palette-color-3);
}

.ql-container.ql-snow {
    border: none;
}

.ql-toolbar.ql-snow {
    background-color: var(--theme-palette-color-10);
    border: none;
    border-radius: 0 0 5px 5px;
}

.ql-snow a {
    color: var(--theme-palette-color-1);
}

.ql-snow .ql-toolbar .ql-picker-item.ql-selected,
.ql-snow .ql-toolbar .ql-picker-item:hover,
.ql-snow .ql-toolbar .ql-picker-label.ql-active,
.ql-snow .ql-toolbar .ql-picker-label:hover,
.ql-snow .ql-toolbar button.ql-active,
.ql-snow .ql-toolbar button:focus,
.ql-snow .ql-toolbar button:hover,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected,
.ql-snow.ql-toolbar .ql-picker-item:hover,
.ql-snow.ql-toolbar .ql-picker-label.ql-active,
.ql-snow.ql-toolbar .ql-picker-label:hover,
.ql-snow.ql-toolbar button.ql-active,
.ql-snow.ql-toolbar button:focus,
.ql-snow.ql-toolbar button:hover {
    color: var(--theme-palette-color-7);
    background-color: var(--theme-palette-color-1);
    border-radius: 3px;
}

#wpdcom .ql-toolbar .ql-stroke {
    color: var(--theme-palette-color-1);
    stroke: var(--theme-palette-color-1);
}

#wpdcom .ql-toolbar .ql-fill {
    color: var(--theme-palette-color-1);
    fill: var(--theme-palette-color-1);
}

#wpdcom .ql-toolbar button.ql-active .ql-stroke,
#wpdcom .ql-toolbar button:hover .ql-stroke {
    color: var(--theme-palette-color-7);
    stroke: var(--theme-palette-color-7);
}

#wpdcom .ql-toolbar button.ql-active .ql-fill,
#wpdcom .ql-toolbar button:hover .ql-fill {
    color: var(--theme-palette-color-7);
    fill: var(--theme-palette-color-7);
}

.ql-snow .ql-tooltip {
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-palette-color-3);
    background-color: var(--theme-palette-color-8);
    border: none;
    border-radius: 3px;
    box-shadow: 0 0 5px var(--theme-border-color);
}

.ql-snow .ql-tooltip input[type=text] {
    background-color: var(--theme-palette-color-7);
    border: 1px solid var(--theme-border-color);
}

.ql-snow .ql-tooltip a {
    line-height: 26px !important;
}

.ql-snow .ql-tooltip a.ql-action,
.ql-snow .ql-tooltip a.ql-remove {
    margin-left: 5px;
    padding: 3px 5px;
    font-weight: 500;
    color: var(--theme-palette-color-7);
    background-color: var(--theme-palette-color-1);
    border-radius: 3px;
}

.ql-snow .ql-tooltip a.ql-remove::before,
.ql-snow .ql-tooltip a.ql-action::after {
    padding: 0;
    margin: 0;
    border: none;
}

.wpd-form-row {
    margin-left: 66px;
    padding-top: 5px;
}

.wpd-form-row .wpd-form-col-left {
    float: left;
    width: 390px;
}

.wpd-form-row .wpd-form-col-right {
    float: right;
}

#wpdcom .wpd-form-row .wpd-field {
    color: var(--theme-palette-color-3);
    border: 1px solid var(--theme-border-color);
}

#wpdcom .wc-field-submit {
    flex-wrap: nowrap;
    padding: 0;
}

#wpdcom .wpd_label__check i.wpdicon {
    width: var(--theme-button-min-height);
    height: var(--theme-button-min-height);
    padding: 0;
    line-height: var(--theme-button-min-height);
    border-radius: 5px;
}

#wpdcom .wpd_label__check i.wpdicon-off {
    color: var(--theme-palette-color-1);
    background-color: var(--theme-palette-color-7);
    border: 1px solid var(--theme-border-color);
}

#wpdcom .wpd_label__check i.wpdicon-on {
    color: var(--theme-palette-color-7);
    background-color: var(--theme-palette-color-1);
    border: none;
    box-shadow: 0 0 5px var(--theme-border-color);
}

[wpd-tooltip]::after {
    min-width: 10vw;
}

#wpdcom .wpd-thread-head {
    border-color: var(--theme-border-color);
}

#wpdcom .wpd-thread-head .wpd-thread-info {
    color: var(--theme-palette-color-4);
    border-color: var(--theme-palette-color-4);
}

#wpdcom .wpd-thread-head .wpd-thread-info .wpdtc {
    font-size: 26px;
    font-style: italic;
}

#wpdcom .wpd-thread-filter .wpd-filter {
    border-color: var(--theme-border-color);
}

#wpdcom .wpd-thread-filter .wpdf-reacted {
    border-bottom-color: #ffa600;
}

#wpdcom .wpd-thread-filter .wpdf-hottest {
    border-bottom-color: #fc5844;
}

#wpdcom .wpd-thread-filter .wpdf-sorting {
    min-width: auto;
    color: var(--theme-palette-color-3);
}

#wpdcom .wpd-comment .wpd-comment-header {
    justify-content: flex-start;
    align-items: flex-end;
    margin-bottom: 10px;
}

#wpdcom .wpd-comment-header .wpd-comment-link,
#wpdcom .wpd-comment-footer .wpd-tools i,
#wpdcom .wpd-comment-footer .wpd-toggle i {
    color: var(--theme-palette-color-5)
}

#wpdcom .wpd-comment-footer .wpd-sep {
    border: none;
}

#wpdcom .wpd-comment .wpd-avatar,
#wpdcom .wpd-form .wpd-avatar img,
#wpdcom .wpd-comment.wpd-reply .wpd-avatar img,
#wpdcom .wpd-comment.wpd-reply .wpd-avatar img.avatar,
#wpdcom .wpd-comment .wpd-comment-right .wpd-avatar img,
#wpdcom .wpd-comment .wpd-comment-right .wpd-avatar img.avatar {
    width: 56px;
    height: 56px;
    max-width: 56px;
    padding: 0px;
}

#wpdcom .wpd-form .wpd-avatar,
#wpdcom .wpd-comment .wpd-avatar {
    margin-right: 10px;
    background-color: #FEFEFE;
    border-radius: 50% 50% 3px;
    overflow: hidden;
}

#wpdcom .wpd-comment .wpd-comment-header .wpd-user-info {
    flex-grow: 1;
}

#wpdcom .wpd-comment .wpd-comment-header .wpd-user-info .wpd-uinfo-top,
#wpdcom .wpd-comment .wpd-comment-header .wpd-user-info .wpd-uinfo-bottom {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    color: var(--theme-palette-color-3);
}

#wpdcom .wpd-comment .wpd-comment-right .wpd-comment-header .wpd-comment-author,
#wpdcom .wpd-comment .wpd-comment-right .wpd-comment-header .wpd-comment-author a {
    font-size: 18px;
    color: var(--theme-palette-color-1);
    letter-spacing: normal;
}

#wpdcom .wpd-comment .wpd-comment-right .wpd-comment-label {
    width: auto;
    margin: 0;
    font-size: 12px;
    color: var(--theme-palette-color-8);
    background-color: var(--theme-palette-color-1);
}

#wpdcom .wpd-comment .wpd-reply-to {
    margin-bottom: 0;
    border: none;
    padding-left: 0;
    color: var(--theme-palette-color-3);
}

#wpdcom .wpd-comment .wpd-reply-to a {
    font-weight: 600;
    color: var(--theme-palette-color-1);
}

#wpdcom .wpd-comment .wpd-comment-right .wpd-comment-text {
    padding: 10px 15px;
    margin-bottom: 10px;
    font-size: inherit;
    color: var(--theme-palette-color-3);
    background-color: var(--theme-palette-color-8);
    border-radius: 3px;
    box-shadow: 3px 5px 10px var(--theme-palette-color-10);
}

#wpdcom .wpd-comment .wpd-comment-right .wpd-comment-footer .wpd-reply-button {
    position: relative;
    top: 0px;
    padding: 3px 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--theme-palette-color-7);
    background-color: var(--theme-palette-color-1);
    border-radius: 5px;
    transition: all 0.2s;
}

#wpdcom .wpd-comment .wpd-comment-right .wpd-comment-footer .wpd-reply-button:hover {
    top: -2px;
    background-color: var(--theme-palette-color-2);
    box-shadow: 0 0 5px var(--theme-border-color);
}

#wpdcom .wpd-comment .wpd-comment-right .wpd-comment-footer .wpd-reply-button svg {
    width: 16px;
    height: 16px;
    fill: var(--theme-palette-color-7);
    pointer-events: none;
}

#wpdcom .wpd-comment .wpd-comment-right .wpd-comment-footer .wpd-reply-button span {
    line-height: 16px;
    pointer-events: none;
}

#wpdcom .wpd-second-button,
#wpdcom .wpd-prim-button {
    position: relative;
    top: 0;
    font-size: 16px;
    color: var(--theme-palette-color-6);
    background-color: var(--theme-palette-color-1);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

#wpdcom .wpd-second-button:hover,
#wpdcom .wpd-prim-button:hover {
    box-shadow: 3px 5px 15px var(--theme-border-color);
}

.wpdiscuz-comment-pagination .wpd-load-more-submit {
    padding: 7px 15px;
}

.wpd-load-more-submit-wrap .wpd-loading {
    padding: 0 15px !important;
    height: 41px;
    line-height: 41px !important;
    text-align: center;
    overflow: hidden;
    pointer-events: none;
}

.wpd-load-more-submit-wrap .wpd-loading::before {
    content: '加载中...';
    display: block;
}

@media screen and (max-width: 600px) {
    #wpdcom .wpd-form .wpdiscuz-textarea-wrap {
        flex-direction: column;
    }

    #wpdcom .wpd-form .wpd-avatar {
        margin-bottom: 10px;
    }

    #wpdcom .wpd-form .wpdiscuz-textarea-wrap [id^=wpd-editor-wraper] {
        width: 100%;
    }

    .wpd-form-row {
        margin-left: inherit;
    }

    #wpdcom .wpd-form .wpd-form-foot,
    #wpdcom .wpd-form-row .wpd-form-col-left,
    #wpdcom .wpd-form-row .wpd-form-col-right {
        width: auto;
    }

    #wpdcom .wpd-thread-head .wpd-thread-info {
        flex-basis: auto;
        border-bottom: inherit;
    }
}

/* 评论ip位置 */
.comment--location {
    display: flex;
    align-items: center;
    font-size: 14px !important;
    color: var(--theme-palette-color-3) !important;
    fill: var(--theme-palette-color-3) !important;
}

.comment--location svg {
    margin-right: 5px;
}

/* 链接&RSS聚合 */
:root {
    --fct-links-a: var(--theme-palette-color-1);
    --fct-links-hover: var(--theme-palette-color-2);
    --fct-links-text: var(--theme-palette-color-3);
    --fct-links-bg: var(--theme-palette-color-8);
    --fct-links-avatar: #FEFEFE;
    --fct-links-line: var(--theme-palette-color-1);
}

.fct-link-card {
    box-shadow: 0 0 10px var(--theme-palette-color-10);
}

/* ------ Links And RSS END ------ */

/* tool bar */
.tool-bar {
    --right-spacing: 20px;
    --bottom-spacing: 30px;
    --button-size: 36px;

    position: fixed;
    right: var(--right-spacing);
    bottom: var(--bottom-spacing);
    display: flex;
    flex-direction: column;
    width: var(--button-size);
    z-index: 2;
    transition: all 0.3s;
}

.tool-bar.hide {
    right: calc(var(--button-size) * -1 - 10px);
}

.tool-bar * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.tool-bar>* {
    position: relative;
    margin-bottom: 10px;
    border-radius: calc(var(--button-size) * 0.5);
}

.tool-bar>*:last-child {
    margin-bottom: 0;
}

.tool-bar .button-box {
    position: relative;
    display: block;
    width: var(--button-size);
    height: var(--button-size);
    text-align: center;
    line-height: var(--button-size);
    border-radius: 50%;
    color: var(--theme-palette-color-7);
    background-color: var(--theme-palette-color-1);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
}

.tool-bar .button-box.text {
    font-size: 12px;
    font-weight: 600;
}

.tool-bar .button-box.active,
.tool-bar .button-box.active:hover,
.tool-bar .button-box:hover {
    color: var(--theme-palette-color-7);
    background-color: var(--theme-palette-color-2);
    box-shadow: 0 0 10px var(--theme-palette-color-5);
    transform: scale(1.1);
    z-index: 2;
}

.tool-bar .button-box.active {
    transform: scale(1);
    z-index: 1;
}

/* back to top */
.back-to-top {
    opacity: 0;
    pointer-events: none;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: initial;
}

/* switch style */
.tool-bar .switch-style {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: var(--button-size);
    background-color: var(--theme-palette-color-7);
    border: 1px solid var(--theme-palette-color-5);
    box-sizing: content-box;
}

.tool-bar .switch-style a {
    width: calc(var(--button-size));
    height: calc(var(--button-size));
    color: var(--theme-palette-color-1);
    background-color: var(--theme-palette-color-7);
    box-shadow: none;
}

/* comments bubble */
.tool-bar .comments-bubble .message {
    position: fixed;
    bottom: 196px;
    right: calc(var(--button-size) * 0.5 + var(--right-spacing));
    width: 280px;
    height: var(--button-size);
    padding-left: 10px;
    text-align: left;
    font-size: 16px;
    line-height: var(--button-size);
    background-color: var(--theme-palette-color-7);
    border-radius: 5px;
    box-shadow: 0 0 5px var(--theme-border-color);
    overflow: hidden;
    opacity: 0;
    cursor: pointer;
    transition: all 1s;
    pointer-events: none;
}

.tool-bar .comments-bubble .message.show {
    opacity: 1;
    pointer-events: inherit;
}

/** 
    前端文章目录 - css
    author:     阿锋
    link:       https://feng.pub
    version:    0.2.0
*/
.content-toc {}

.content-toc.spread .button-box {
    right: 5px;
    width: calc(var(--button-size) + 5px);
    color: var(--theme-palette-color-1);
    background-color: var(--theme-palette-color-8);
    border: 1px solid var(--theme-border-color);
    border-left: none;
    border-radius: 0 calc(var(--button-size) * 0.5) calc(var(--button-size) * 0.5) 0;
}

.content-toc.spread .button-box:hover {
    color: var(--theme-palette-color-1);
    background-color: var(--theme-palette-color-8);
    box-shadow: none;
}

.content-toc .index-box {
    position: fixed;
    right: calc(var(--button-size) + var(--right-spacing) + 4px);
    bottom: 160px;
    width: 200px;
    min-height: 130px;
    max-height: calc(100% - 225px);
    padding: 5px;
    background-color: var(--theme-palette-color-8);
    border: 1px solid var(--theme-border-color);
    border-radius: 5px;
    overflow-x: none;
    overflow-y: auto;
    opacity: 1;
    transition: all 0.3s;
}

.content-toc .index-box::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}

.content-toc .index-box::-webkit-scrollbar-track {
    /* 设置背景色 */
    background-color: var(--theme-palette-color-8);
    -webkit-border-radius: 3px;
}

.content-toc .index-box::-webkit-scrollbar-thumb {
    /* 设置滑块的颜色 */
    background-color: var(--theme-border-color);
}

.content-toc .index-box h6 {
    position: relative;
    padding-left: 15px;
    margin-bottom: 10px;
    font-size: 18px;
}

.content-toc .index-box h6::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--theme-palette-color-4);
    border-radius: 5px;
}

.content-toc .index-box .close-box {
    position: absolute;
    top: 9px;
    right: 10px;
    display: block;
    padding: 0 5px;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    color: var(--theme-palette-color-7);
    background-color: var(--theme-palette-color-1);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.5s;
}

.content-toc .index-box .close-box:hover {
    transform: scale(1.1);
}

.content-toc .index-box ul {
    padding: 0;
    list-style: none;
}

.content-toc .index-box li {
    position: relative;
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 24px;
    color: var(--theme-palette-color-1);
    border-radius: 3px;
    cursor: pointer;
}

.content-toc .index-box li:last-child {
    margin-bottom: 0;
}

.content-toc .index-box li::before {
    content: '';
    display: block;
    position: absolute;
    left: 5px;
    top: calc(50% - 2.5px);
    width: 3px;
    height: 7px;
    background: var(--theme-palette-color-3);
    border-radius: 2.5px;
}

.content-toc .index-box li.active,
.content-toc .index-box li:hover {
    font-weight: 700;
    color: var(--theme-palette-color-7);
    background-color: var(--theme-palette-color-1);
}

.content-toc .index-box li.active::before,
.content-toc .index-box li:hover::before {
    background: var(--theme-palette-color-7);
}

.content-toc .index-box li.level_H1 {
    padding-left: 1em;
}

.content-toc .index-box li.level_H2 {
    padding-left: 1em;
}

.content-toc .index-box li.level_H3 {
    padding-left: 2em;
}

.content-toc .index-box li.level_H4 {
    padding-left: 3em;
}

.content-toc .index-box li.level_H5 {
    padding-left: 4em;
}

.content-toc .index-box li.level_H6 {
    padding-left: 5em;
}

.content-toc.less .button-box {
    right: inherit;
    width: calc(var(--button-size));
    border: none;
    border-radius: calc(var(--button-size) * 0.5);
}

.content-toc.less .index-box {
    opacity: 0;
    pointer-events: none;
}

@media screen and (max-width: 576px) {

    .tool-bar {
        left: 0;
        right: 0;
        bottom: 5px;
        width: auto;
        height: calc(var(--button-size));
        flex-direction: row;
        justify-content: center
    }

    .tool-bar.hide {
        right: 0;
        bottom: -46px;
    }

    .tool-bar::before {
        content: '';
        display: block;
        position: absolute;
        top: -5px;
        right: 0;
        left: 0;
        bottom: -5px;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    .tool-bar>* {
        margin-right: 10px;
        margin-bottom: 0;
    }

    .tool-bar>*:last-child {
        margin-right: 0;
    }

    .back-to-top {
        opacity: 1;
        pointer-events: initial;
    }

    .tool-bar .switch-style {
        flex-direction: row;
        width: auto;
    }

    .tool-bar .switch-style a {
        width: calc(var(--button-size) - 2px);
        height: calc(var(--button-size) - 2px);
    }

    .tool-bar .switch-style .auto {
        display: none;
    }

    .tool-bar .comments-bubble .message {
        position: fixed;
        top: auto;
        bottom: calc(var(--button-size) + 15px);
        left: calc(50% - 140px);
        padding-left: inherit;
        text-align: center;
        border-radius: 5px;
    }

    .content-toc.spread .button-box {
        right: auto;
        bottom: 5px;
        width: var(--button-size);
        height: calc(var(--button-size) + 5px);
        border-radius: 0 0 calc(var(--button-size) * 0.5) calc(var(--button-size) * 0.5);
        border: 1px solid var(--theme-border-color);
        border-top: none;
    }

    .content-toc .index-box {
        left: calc(50% - 120px);
        right: auto;
        bottom: calc(var(--button-size) + 9px);
        max-height: calc(100% - 125px);
    }
}

/* 分享按钮组插件样式 */
.wbp-cbm {
    --dwqrColor: var(--theme-palette-color-1);
    margin-top: 0px !important;
    padding: 20px !important;
    border-top: none !important;
}

.wbui-cont {
    padding: 10px 0px !important;
}

.entry-content .wbp-cbm .wb-btn-dwqr,
.entry-content .wbp-dwqr-sticky .wb-btn-dwqr {
    background-color: var(--theme-palette-color-8);
    border: none;
}

.entry-content .wbp-cbm .wb-btn-dwqr svg,
.entry-content .wbp-dwqr-sticky .wb-btn-dwqr svg {
    fill: var(--theme-palette-color-1);
}

.entry-content .wbp-cbm .wb-btn-dwqr span,
.entry-content .wbp-dwqr-sticky .wb-btn-dwqr span {
    color: var(--theme-palette-color-1);
}

.wbp-cbm .wb-btn-dwqr.active,
.wbp-cbm .wb-btn-dwqr:active,
.wbp-cbm .wb-btn-dwqr:hover,
.wbp-dwqr-sticky .wb-btn-dwqr.active,
.wbp-dwqr-sticky .wb-btn-dwqr:active,
.wbp-dwqr-sticky .wb-btn-dwqr:hover {
    background-color: var(--theme-palette-color-1) !important;
}

.wbp-cbm .wb-btn-dwqr.active svg,
.wbp-cbm .wb-btn-dwqr:active svg,
.wbp-cbm .wb-btn-dwqr:hover svg,
.wbp-dwqr-sticky .wb-btn-dwqr.active svg,
.wbp-dwqr-sticky .wb-btn-dwqr:active svg,
.wbp-dwqr-sticky .wb-btn-dwqr:hover svg {
    fill: var(--theme-palette-color-7) !important;
}

.wbp-cbm .wb-btn-dwqr.active span,
.wbp-cbm .wb-btn-dwqr:active span,
.wbp-cbm .wb-btn-dwqr:hover span,
.wbp-dwqr-sticky .wb-btn-dwqr.active span,
.wbp-dwqr-sticky .wb-btn-dwqr:active span,
.wbp-dwqr-sticky .wb-btn-dwqr:hover span {
    color: var(--theme-palette-color-7) !important;
}

.wbui-dialog .wbui-child {
    background-color: var(--theme-palette-color-7) !important;
    border: none !important;
    box-shadow: 0 0 10px var(--theme-palette-color-5) !important;
}

.wbui-dwqr-donate .wbui-cont,
.wbui-share-poster .wbui-cont {
    padding: 0px !important;
    color: var(--theme-palette-color-3) !important;
}

.wbui-dwqr-donate .tab-nav-item {
    border: none !important;
}

.wbui-dwqr-donate .tab-nav-item+.tab-nav-item {
    border: none !important;
}

.wbui-dwqr-donate .tab-nav-item.current {
    border: none !important;
    background-color: var(--theme-palette-color-8) !important;
}

.wbui-dwqr-donate .tab-cont .pic {
    width: auto !important;
    height: auto !important;
    margin-top: 2px !important;
}

.wbui-dwqr-donate .tab-cont .hl {
    color: var(--theme-palette-color-4) !important;
    font-weight: 900 !important;
}

.wbui-child .wbui-title {
    border: none;
}